#include  <cstdio>
#include  <string>
#include  <iostream>
using namespace std;

int main(int argc, char *argv[])
{
	int arr[26*2];
	int p[26];
	int bs;

	scanf("%d",&bs);
	while( bs != 0 )
	{
		string ss;
		cin >> ss;
		int n = ss.size();
		int gone = 0;

		for( int i = 0 ; i < 26 ; ++i )
			p[i] = -1;
		
		for( int i = 0 ; i < n  ; ++i )
			arr[i] = ss[i] - 'A';

		for( int i = 0 ; i < n ; ++i )
		{
			if(p[arr[i]] == -1)
			{
				if(bs > 0)
				{
					bs--;
					p[arr[i]] = 1;
				}
				else
				{
					gone++;
					p[arr[i]] = 0;
				}
			}
			else if(p[arr[i]] == 1)
				bs++;
		}
		
		if(gone == 0)
			printf("All customers tanned successfully.\n");
		else
			printf("%d customer(s) walked away.\n",gone);
		
		scanf("%d",&bs);
	}
}
